-- GENERATED SPELL FOR [Shadowpine Ripper] --


function spell0_16340(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(12555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16340', 5305, 1)
end

function Sorts_16340(pUnit, Event)
local choix_sorts_16340 = math.random(0, 0)
if choix_sorts_16340 == 0 then
pUnit:RegisterEvent('spell0_16340', 1, 1)
end
end

function mob16340_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16340', math.random(1500, 3000), 1)
end

function mob16340_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16340_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16340_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16340, 1, 'mob16340_Action')
RegisterUnitEvent(16340, 2, 'mob16340_Leave')
RegisterUnitEvent(16340, 3, 'mob16340_Kill')
RegisterUnitEvent(16340, 4, 'mob16340_Die')
